package cn.saddyfire.pattern.responsibility;

/**
 * @author Dee
 * @date 2024/2/25
 * <p>Description:部门经理类(具体处理者)
 */
public class Manager extends Handler{


    public Manager() {
        super(Handler.NUM_ONE, Handler.NUM_THREE);
    }

    @Override
    protected void handleLeave(LeaveRequest request) {
        System.out.println(request.getName() + "请假" + request.getDays() + "天," + request.getContent());
        System.out.println("部门经理审批: 同意");
    }
}
